package com.bookhouse.action;

import java.util.Set;

import com.bookhouse.domain.Category;
import com.bookhouse.service.CategoryService;
import com.opensymphony.xwork2.ActionSupport;

public class CategoryAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private CategoryService categoryService;
	private Set<Category> sets;

	public Set<Category> getSets() {
		return sets;
	}

	public void setSets(Set<Category> sets) {
		this.sets = sets;
	}

	public void setCategoryService(CategoryService categoryService) {
		this.categoryService = categoryService;
	}

	public String getCategoryList() throws Exception {
		sets = categoryService.getAllCategory();
		return "getCategoryList";
	}
}
